package com.nelson.myapplication.objectdemo

/**
 * 类似与Java的静态内部类
 */
class ObjectDemo2 {
    object Direct {
        var name = "Nelson"
        fun doNothing() {
            println("ObjectDemo2")
        }
    }
}

class ObjectDemoRun {
    fun run() {
        var objectDemo1 = ObjectDemo1;
        var objectDemo1Run = ObjectDemo1Run()
        ObjectDemo2.Direct.name
        ObjectDemo2.Direct.doNothing()
    }
}